import {Injectable, Inject} from '@nestjs/common'

@Injectable()
export class AppService {
    constructor(
        @Inject('CONFIG') private readonly config: any,
        @Inject('PREFIX') private prefix:string,
    ) {
    }

    getConfig() {
        console.log(this.config);
        return {
            ...this.config,
            prefix:this.prefix
        }
    }

    log(message: string) {
        console.log('AppService: ', message);
    }
}
